{include file="admin/public/header" /}
<form role="form" method="post" action="{:url('ajax/setting/saveconfig')}" class ="cmzForm">
<style type="text/css">
	.tab-pane{padding-top: 20px;padding: 20px;}
</style>
	<div class="row">
            <div class="col-sm-12">
            <div class="tabs-container">
                    <div style="clear:both;height:20px"></div>
                    <div class="tab-content">
                        <div id="tab-1" class="tab-pane active">
			                 <div class="ibox float-e-margins">
			                        <div class="row">
			                            <div class="col-sm-12 b-r">
			                               <div class="ibox-title">
						                        <a class="label label-primary pull-right tip" id="admin" msg="网站的站点功能配置信息">站点功能<i class="fa fa-question"></i></a>
						                        <h5>站点功能</h5>
						                    </div>
						                    <div class="ibox-content">
						                        <table class="table table-striped">
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php e('使用积分系统'); ?>:</span>
                            <div class="col-sm-6 col-xs-8">
                                <div class="btn-group mod-btn">
                                    <label type="button" class="btn mod-btn-color">
                                        <input type="radio" name="integral_system_enabled" value="Y"<?php if ($config['integral_system_enabled'] == 'Y') { ?> checked="checked"<?php } ?> /> <?php e('是'); ?>
                                    </label>

                                    <label type="button" class="btn mod-btn-color">
                                        <input type="radio" name="integral_system_enabled" value="N"<?php if ($config['integral_system_enabled'] != 'Y') { ?> checked="checked"<?php } ?> /> <?php e('否'); ?>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php e('积分单位'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="integral_unit" type="text" class="form-control" value="<?php echo $config['integral_unit']; ?>"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php e('新用户注册默认拥有积分'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="integral_system_config_register" type="text" class="form-control" value="<?php echo $config['integral_system_config_register']; ?>"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php e('用户完善资料获得积分（包括头像，一句话介绍，履历等资料）'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="integral_system_config_profile" type="text" class="form-control" value="<?php echo $config['integral_system_config_profile']; ?>"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php e('用户邀请他人注册且被邀请人成功注册'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="integral_system_config_invite" type="text" class="form-control" value="<?php echo $config['integral_system_config_invite']; ?>"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php e('发起问题'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="integral_system_config_new_question" type="text" class="form-control" value="<?php echo $config['integral_system_config_new_question']; ?>"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php e('回复问题'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="integral_system_config_new_answer" type="text" class="form-control" value="<?php echo $config['integral_system_config_new_answer']; ?>"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php e('问题被回复时增加发起者积分'); ?>:</span>
                            <div class="col-sm-6 col-xs-8">
                                <div class="btn-group mod-btn">
                                    <label type="button" class="btn mod-btn-color">
                                        <input type="radio" name="integral_system_config_answer_change_source" value="Y"<?php if ($config['integral_system_config_answer_change_source'] == 'Y') { ?> checked="checked"<?php } ?> /> <?php e('是'); ?>
                                    </label>

                                    <label type="button" class="btn mod-btn-color">
                                        <input type="radio" name="integral_system_config_answer_change_source" value="N"<?php if ($config['integral_system_config_answer_change_source'] != 'Y') { ?> checked="checked"<?php } ?> /> <?php e('否'); ?>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php e('回复被评为最佳回复'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="integral_system_config_best_answer" type="text" class="form-control" value="<?php echo $config['integral_system_config_best_answer']; ?>"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php e('感谢回复'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="integral_system_config_thanks" type="text" class="form-control" value="<?php echo $config['integral_system_config_thanks']; ?>"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php e('回复被折叠'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="integral_system_config_answer_fold" type="text" class="form-control" value="<?php echo $config['integral_system_config_answer_fold']; ?>"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php e('发起者邀请用户回答问题且收到答案'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="integral_system_config_invite_answer" type="text" class="form-control" value="<?php echo $config['integral_system_config_invite_answer']; ?>"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php e('发起者赞同反对威望系数'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="publisher_reputation_factor" type="text" class="form-control" value="<?php //echo get_setting('publisher_reputation_factor'); ?>"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php e('最佳回复威望系数'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="best_answer_reput" type="text" class="form-control" value="<?php //echo get_setting('best_answer_reput'); ?>"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php e('对数底值'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="reputation_log_factor" type="text" class="form-control" value="<?php// echo get_setting('reputation_log_factor'); ?>"/>

                                <div class="help-block"><?php e('控制显示的威望值大小，底数越小威望值越大，底数越大威望值越小，系统默认数值是 3'); ?><br /><?php e('威望公式：log((((用户组威望系数 x 赞同数 - 用户组威望系数 x 反对数) + 发起者赞同反对威望系数 + 最佳回复威望系数) + 0.5), 对数底值)'); ?></div>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
			                    			</div>
			                            </div>
			                            
			                        </div>  
			                        <div style="clear:both;height:5px"></div> 
			                        <div class="hr-line-dashed"></div>
			                            <div class="form-group">
			                                <div class="col-sm-4 col-sm-offset-2">
			                                 <a href="javascript:;" class="btn btn-sm btn-primary pull-left m-t-n-xs cmzPost" style="margin-left:20px;,margin-top:20px;"><strong>提交配置</strong></a>
			                                </div>
			                            </div>
			                         
                    				 <div style="clear:both;height:5px"></div>    
			                </div>
                        </div>




                        


                    </div>


                </div>



             
            </div>
        
           
</div>
<div style="clear:both;"></div>
 <div>
  	 
  
	</div>


           
   </form>

{include file="admin/public/footer" /}